import request2 from '@/utils/request2'
import { officeApiUrl } from '@/api/config'

export default {
  del(data) {
    return request2({
      url: officeApiUrl + '/label-types/batch-delete', method: 'delete', data
    })
  },
  list(params, data) {
    return request2({
      url: officeApiUrl + '/label-types/query', method: 'post', params, data
    })
  },
  add(params, data) {
    return request2({
      url: officeApiUrl + '/label-types', method: 'post', params, data
    })
  },
  edit(params, data) {
    return request2({
      url: officeApiUrl + '/label-types/update', method: 'post', params, data
    })
  },
}